package com.woniuxy.charin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.charin.model.entity.ActivityStation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ActivityStationMapper extends BaseMapper<ActivityStation> {
    
    // 删除活动关联的所有站点
    int deleteByActivityId(@Param("activityId") Long activityId);
    
    // 批量插入活动站点关联关系
    int insertBatch(@Param("list") List<ActivityStation> activityStations);
    
    // 查询活动关联的站点ID列表
    List<Long> findStationIdsByActivityId(@Param("activityId") Long activityId);
}